﻿using System;
using System.Configuration;

namespace CarBooker.Infrastructure.EntityFactoryFramework.Configuration
{
    public sealed class EntityMappingElement: ConfigurationElement
    {
                [ConfigurationProperty(EntityMappingConstants.EntityShortTypeNameAttributeName, 
            IsKey=true, 
            IsRequired=true)]
        public string InterfaceShortTypeName
        {
            get 
            {
                return (string)this[EntityMappingConstants.EntityShortTypeNameAttributeName];
            }
            set 
            {
                this[EntityMappingConstants.EntityShortTypeNameAttributeName] = value;
            }
        }
        [ConfigurationProperty(EntityMappingConstants.EntityFullTypeNameAttributeName, 
            IsKey=true, 
            IsRequired=true)]
        public string EntityFullTypeName
        {
            get
            {
                return (string)this[EntityMappingConstants.EntityFullTypeNameAttributeName];
            }
            set
            {
                this[EntityMappingConstants.EntityFullTypeNameAttributeName] = value;
            }
        }
    }
}
